package edu.clarkson.ee368.spring2012.coreservices;

import java.net.HttpURLConnection;

public interface GoogleServiceAuthenticator {
	
	public void applyAuthenticationToHttpConnection(HostedApplication hostedApplication, String service, HttpURLConnection connection) throws GoogleServiceAuthenticationException ;

	public void ensureAuthenticationWasAccepted(HttpURLConnection connection) throws GoogleServiceAuthenticationException;

	void authenticate(HostedApplication hostedApplication, String email, String password);

}
